﻿namespace JunionRobotTaskManager
{
    public class CalibrationLockSingleton
    {
        private static CalibrationLockSingleton _instance;

        private object _lock = new object();

        private bool _isLock;

        public bool IsLock
        {
            get
            {
                lock (_lock)
                {
                    return _isLock;
                }
            }
            set
            {
                lock (_lock)
                {
                    _isLock = value;
                }
            }
        }

        private CalibrationLockSingleton()
        {

        }

        public static CalibrationLockSingleton GetInstance()
        {
            if (_instance == null)
            {
                return new CalibrationLockSingleton();
            }
            else
            {
                return _instance;
            }
        }
    }
}
